<template>
  <img v-bind:src="url" v-on:click="refresh"/>
</template>

<script>
import resource from '../config/resource.js'
export default {
  data() {
    let originUrl = `${resource.root}/content/base/pictureCaptcha`
    let url = originUrl
    return { originUrl, url }
  },
  methods: {
    refresh() {
      this.url = this.originUrl + '?&_=' + new Date().getTime()
    }
  }
}
</script>
